Component({
  properties: {
    visible: {
      type: Boolean,
      value: false
    }
  },
  data: {
    // visible:true
    swiperList: [{
        "id": 1,
        "name": "card1",
        "type": 1,
        "mini_img": "https://image.sgwxmini.com/sglive/card/card1_mini.png",
        "big_img": "https://image.sgwxmini.com/sglive/card/card1.png"
      },
      {
        "id": 2,
        "name": "card2",
        "type": 1,
        "mini_img": "https://image.sgwxmini.com/sglive/card/card2_mini.png",
        "big_img": "https://image.sgwxmini.com/sglive/card/card2.png"
      },
      {
        "id": 3,
        "name": "card3",
        "type": 1,
        "mini_img": "https://image.sgwxmini.com/sglive/card/card3_mini.png",
        "big_img": "https://image.sgwxmini.com/sglive/card/card3.png"
      }
    ],
    cur:0,
    isShowBigSwiper:false
  },
  ready: function () {

  },
  detached: function () {

  },
  methods: {
    delShare() {
      console.log(11111)
      this.setData({
        shareVisible: false
      })
    },
    catchTouchMove: function () {
      return false
    },
    swiperChange: function (e) {
      console.log(e)
      this.setData({
        cur: e.detail.current
      })
    },
    showBigSwiper(e){ 
      console.log(e,'eeeeeee')
      this.setData({isShowBigSwiper:true})
    },
    delBigSwiper(){
      this.setData({isShowBigSwiper:false})
    },

    onShareTimeline() {
      wx.onShareTimeline((result) => {
        return {
          title: '',
          query: '',
          imageUrl: ''
        }
      })

    },


  },

  onShareTimeline: function () {
    return {
      title: '朋友圈看到的页面标题',
      path: '页面链接',
      imageUrl: '分享链接图片',
      query: '携带的参数'
    }
  },

});